package aop.common;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class LoginMemberRankDAOImpl implements LoginMemberRankDAO {
	@Resource(name="sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;
	
	@Override
	public int isFirstLogin(String id) {
		return sqlSessionTemplate.selectOne("common.isFirstLogin",id);
	}

	@Override
	public void insertLoginId(String id) {
		sqlSessionTemplate.insert("common.insertLoginId",id);
	}
	
	@Override
	public void updateLoginId(String id) {
		sqlSessionTemplate.update("common.updateLoginId",id);
	}
	
	
}
